package com.zyl.points.bean;

import android.content.Context;

import com.zyl.points.service.TaskService;

public class Task {

 	private Integer qid;
 	private Integer page; 
 	private Integer size;
 	private Integer appearTimes;
 	private Question current;
	//FIXME 去掉 right这个没有用的字段
 	private Boolean right; 
	private Integer rightIndex; 
	private Boolean finsh; 
	private Integer totalCount; 
	public static Task task;
	
	 
	public Task(Integer page, Integer size, Integer appearTimes,Integer rightIndex,Integer qid,Integer totalCount,Question current,boolean finsh) {
		super();
		if(page==null) page=0;
		if(size==null) size=10;
		if(appearTimes==null) appearTimes=2;
		if(qid==null) qid=1;
		this.page = page;
		this.size = size;
		this.appearTimes = appearTimes;
		this.rightIndex = rightIndex;
		this.totalCount = totalCount;
		this.current = current;
		this.qid = qid;
		this.finsh = finsh;
	}

 

	public static Task getInstance(Context context) {
		if (task == null) {
			task = new TaskService(context).get();
		}
		return task;
	}
	 
 
	public Integer getPage() {
		return page;
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public Integer getSize() {
		return size;
	}
	public void setSize(Integer size) {
		this.size = size;
	}
	public Integer getAppearTimes() {
		return appearTimes;
	}
	public void setAppearTimes(Integer appearTimes) {
		this.appearTimes = appearTimes;
	}
	public Question getCurrent() {
		return current;
	}
	public void setCurrent(Question current) {
		this.current = current;
	}
	public Boolean getRight() {
		return right;
	}
	public void setRight(Boolean right) {
		this.right = right;
	}
	public Integer getRightIndex() {
		return rightIndex;
	}
	public void setRightIndex(Integer rightIndex) {
		this.rightIndex = rightIndex;
	}



	public Boolean getFinsh() {
		return finsh;
	}



	public void setFinsh(Boolean finsh) {
		this.finsh = finsh;
	}



	public Integer getQid() {
		return qid;
	}



	public void setQid(Integer qid) {
		this.qid = qid;
	}



	public Integer getTotalCount() {
		return totalCount;
	}



	public void setTotalCount(Integer totalCount) {
		this.totalCount = totalCount;
	}
	
	 
}
